home *** CD-ROM | disk | FTP | other *** search
- { --------------------------
- Display TIME of day at X,Y
- -------------------------- }
- Procedure TimeXY (X : ColumnType;
- Y : RowType ) ;
- var
- hour : integer;
- hr,
- min, sec : string[2];
-
- begin
- with regs do
- begin
- ax := $2C00;
- intr($21,regs);
- hour := hi(cx);
- if hour < 1 then
- hour := 12
- else
- if hour > 12 then
- hour := hour - 12;
- str ( hour, hr );
- str ( lo(cx), min );
- str ( hi(dx), sec );
- if length(min) < 2 then
- min := '0'+min;
- if length(sec) < 2 then
- sec := '0'+sec;
- PutStr( h,hr+':'+min+':'+sec, x,y,14);
- end
- end { TimeXY };